<%= error_messages_for :user %>
<div id="users_form" >
    <p><label for="user_login">Login</label><br />
    <%= text_field 'user', 'login' %></p>
    <p><label for="user_email">Email address</label><br />
    <%= text_field 'user', 'email' %></p>
    <p><label for="user_user_type_id">Privilege</label><br />
    <%= select 'user', 'user_type_id', UserType.options, {:selected => @user.user_type.id} %></p>
</div>